package pages;

import finds.Finder;
import org.openqa.selenium.WebElement;

/**
 * Created by 13714526025 on 2018/9/20.
 */
public class ReDeviceNamePage {
    private Finder finder;
    public ReDeviceNamePage(Finder finder){
        this.finder=finder;
    }
    //修改名称输入框
    public void  sendKeysName(String deviceName){
        WebElement edit=finder.findElementById("com.oppo.ohome:id/et_name");
        edit.click();
        edit.clear();
        edit.sendKeys(deviceName);

    }
    //立即使用
    public void useBtnClick(){
        finder.findElementById("com.oppo.ohome:id/btn_next").click();
    }


}
